<template>
  <div class="container">
    <div class="box">
      <header class="header">
        <van-tabs v-model:active="active">
          <van-tab title="正在热映">
            <ul style="padding:10px">
              <li style="display:flex;justify-content: space-between;align-items: center;">
                <div style="display:flex">
                  <img style="width:100px;margin-right:10px" src="./assets/img1.jpg" alt="">
                  <div>
                    <h2>逆行人生 </h2>
                    <p>观众评分7.6</p>
                    <p>主演： 徐峥 徐峥 辛芷蕾 </p>
                    <p>中国大陆</p>
                  </div>
                </div>
                <van-button>购票</van-button>
              </li>
            </ul>
          </van-tab>
          <van-tab title="即将热映">内容2</van-tab>
        </van-tabs>
      </header>
      <div class="content"></div>
    </div>
    <footer class="footer">
      <ul>
        <li style="color:green">
          <span></span>
          <p>首页</p>
        </li>
        <li>
          <span></span>
          <p>分类</p>
        </li>
        <li>
          <span></span>
          <p>购物车</p>
        </li>
        <li>
          <span></span>
          <p>我的</p>
        </li>
      </ul>
    </footer>
  </div>
</template>
<script setup>
const active = 0
</script>
<style lang="scss">
* {
  margin: 0;
  padding: 0;
  list-style: none;
}

html,
body,
#app,
.container {
  width: 100%;
  height: 100%;
}

.container {
  display: flex;
  flex-direction: column;
  background: #efefef;

  .box {
    flex: 1;
    /* 铺满剩下的整个屏幕 */
    overflow: auto;

    display: flex;
    flex-direction: column;

    .header {
      height: 50px
    }

    .content {
      flex: 1;
      overflow: auto;
    }
  }

  .footer {
    height: 50px;
    background: red;

    ul {
      width: 100%;
      height: 100%;
      display: flex;
      justify-content: space-evenly;
      align-items: center;

    }
  }


}
</style>